<html>
<head>
<title>300px Body</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {color: #000000}
-->
.error_strings{ font-family:Verdana; font-size:10px; color:#660000;}
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (300px Body.jpg) -->
<script language="JavaScript" src="../logic/validation/validation.js" type="text/javascript"></script>
<script language="JavaScript" src="../logic/validation/schedule_update.js" type="text/javascript"></script>

<table width="800" height="173" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<?php 
	$sId=$_GET['edit'];
	$startrow=$_GET['startrow'];
	$tag=$_GET['tag'];
	include'../logic/Classes/db.php';
	
	$x=new Dbconnect();
	
	$con=$x->getConnection();
	
	$sql="select * from class_sched where schedule_id='$sId' ";
	
	$result=mysql_query($sql,$con)or die(mysql_error()) ;

	
	while($row=mysql_fetch_array($result)){
	
	
	$subgr=$row['sub_gr'];
	$day=$row['days'];
	$start=$row['start'];
	$end=$row['end'];
	$conduct=$row['emp_no'];
	$class=$row['class_no'];
	
	}
	
	
	?>
	
	<tr>
		<td>
			<img src="../images/allo_update.gif" width="800" height="69" alt=""></td>
	</tr>
	<tr >
	<td height="64" background="../images/2.gif" style="background-repeat:repeat-y"><table width="750" border="0" cellspacing="0" cellpadding="0">
	
    <form id="myForm" onSubmit="return validate()">
      <?php 
	  
	    $y=new Dbconnect();
	
	    $conn=$y->getConnection();
	 
	    $result1=mysql_query("select sub_gr from subject_code",$con);
	     ?>
	  
      <tr>
        <td width="97" height="25">&nbsp;</td>
        <td width="186"><div align="right"><strong>Subject Code</strong><span class="style1"> * </span></div></td>
        <td colspan="2"><select name="sltSubgr" id="sltSubgr">
          
          <?php while($row1=mysql_fetch_array($result1)) {?>
		  <option value="<?php echo $row1['sub_gr'];  ?>"<?php if ($subgr== $row1['sub_gr'] ) { ?>selected="selected" <?php } ?> ><?php echo $row1['sub_gr'];  ?>   </option>
          <?php } ?>
        </select>
          <input name="txtsId" type="hidden" id="id" value="<?php echo $sId;   ?>">
          <input name="startrow" type="hidden" id="startrow" value="<?php echo $startrow;   ?>">
          <input name="tag" type="hidden" id="tag" value="<?php echo $tag;   ?>"></td>
		  
        <td width="178">&nbsp;</td>
      </tr>
      <tr>
        <td height="19">&nbsp;</td>
        <td>&nbsp;</td>
        <td colspan="2">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="25">&nbsp;</td>
        <td><div align="right"><strong>Day </strong><span class="style1">* </span></div></td>
        <td colspan="2"><select name="sltDay" id="sltDay">
          
          <option value="Sunday" <?php if ($day=="Sunday") { ?>selected="selected" <?php } ?>>Sunday</option>
          <option value="Monday"<?php if ($day=="Monday") { ?>selected="selected" <?php } ?>>Monday</option>
          <option value="Tuesday"<?php if ($day=="Tuesday") { ?>selected="selected" <?php } ?>>Tuesday</option>
          <option value="Wednesday"<?php if ($day=="Wednesday") { ?>selected="selected" <?php } ?>>Wednesday</option>
          <option value="Thursday"<?php if ($day=="Thursday") { ?>selected="selected" <?php } ?>>Thursday</option>
          <option value="Friday"<?php if ($day=="Friday") { ?>selected="selected" <?php } ?>>Friday</option>
          <option value="Saturday"<?php if ($day=="Saturday") { ?>selected="selected" <?php } ?>>Saturday</option>
        </select>        </td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="19">&nbsp;</td>
        <td><div align="right"></div></td>
        <td colspan="2">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="25">&nbsp;</td>
        <td><div align="right"><strong>Start Time</strong><span class="style1"> * </span></div></td>
        <td colspan="2"><select name="sltStart" id="sltStart">
		
          <option value="09.00 AM"<?php if ($start=="09.00 AM") { ?>selected="selected" <?php } ?> >09.00 AM</option>
          <option value="09.30 AM"<?php if ($start=="09.30 AM") { ?>selected="selected" <?php } ?> >09.30 AM</option>
		  <option value="10.00 AM"<?php if ($start=="10.00 AM") { ?>selected="selected" <?php } ?> >10.00 AM</option>
          <option value="10.30 AM"<?php if ($start=="10.30 AM") { ?>selected="selected" <?php } ?> >10.30 AM</option>
		  <option value="11.00 AM"<?php if ($start=="11.00 AM") { ?>selected="selected" <?php } ?> >11.00 AM</option>
		  <option value="11.30 AM"<?php if ($start=="11.30 AM") { ?>selected="selected" <?php } ?> >11.30 AM</option>
          <option value="12.30 PM"<?php if ($start=="12.30 PM") { ?>selected="selected" <?php } ?> >12.30 PM</option>
		  <option value="01.00 PM"<?php if ($start=="01.00 PM") { ?>selected="selected" <?php } ?> >01.00 PM</option>
		  <option value="01.30 PM"<?php if ($start=="01.30 PM") { ?>selected="selected" <?php } ?> >01.30 PM</option>
		  <option value="02.00 PM"<?php if ($start=="02.00 PM") { ?>selected="selected" <?php } ?> >02.00 PM</option>
          <option value="02.30 PM"<?php if ($start=="02.30 PM") { ?>selected="selected" <?php } ?> >02.30 PM</option>
		  <option value="03.00 PM"<?php if ($start=="03.00 PM") { ?>selected="selected" <?php } ?> >03.00 PM</option>
	      <option value="03.30 PM"<?php if ($start=="03.30 PM") { ?>selected="selected" <?php } ?> >03.30 PM</option>
	      <option value="04.00 PM"<?php if ($start=="04.00 PM") { ?>selected="selected" <?php } ?> >04.00 PM</option>
	      <option value="04.30 PM"<?php if ($start=="04.30 PM") { ?>selected="selected" <?php } ?> >04.30 PM</option>
          <option value="05.00 PM"<?php if ($start=="05.00 PM") { ?>selected="selected" <?php } ?> >05.00 PM</option>
          <option value="05.30 PM"<?php if ($start=="05.30 PM") { ?>selected="selected" <?php } ?> >05.30 PM</option>
          <option value="06.00 PM"<?php if ($start=="06.00 PM") { ?>selected="selected" <?php } ?> >06.00 PM</option>
	   
        </select>        </td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="19">&nbsp;</td>
        <td><div align="right"></div></td>
        <td colspan="2">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="25">&nbsp;</td>
        <td><div align="right"><strong>End Time</strong> <span class="style1">* </span></div></td>
        <td colspan="2"><select name="sltEnd" id="sltEnd">
		  <option value="11.00 AM"<?php if ($end=="11.00 AM") { ?>selected="selected" <?php } ?>>11.00 AM</option>
		  <option value="11.30 AM"<?php if ($end=="11.30 AM") { ?>selected="selected" <?php } ?>>11.30 AM</option>
          <option value="12.30 PM"<?php if ($end=="12.30 PM") { ?>selected="selected" <?php } ?>>12.30 PM</option>
		  <option value="01.00 PM"<?php if ($end=="01.00 PM") { ?>selected="selected" <?php } ?>>01.00 PM</option>
		  <option value="01.30 PM"<?php if ($end=="01.30 PM") { ?>selected="selected" <?php } ?>>01.30 PM</option>
		  <option value="02.00 PM"<?php if ($end=="02.00 PM") { ?>selected="selected" <?php } ?>>02.00 PM</option>
          <option value="02.30 PM"<?php if ($end=="02.30 PM") { ?>selected="selected" <?php } ?>>02.30 PM</option>
		  <option value="03.00 PM"<?php if ($end=="03.00 PM") { ?>selected="selected" <?php } ?>>03.00 PM</option>
	      <option value="03.30 PM"<?php if ($end=="03.30 PM") { ?>selected="selected" <?php } ?>>03.30 PM</option>
	      <option value="04.00 PM"<?php if ($end=="04.00 PM") { ?>selected="selected" <?php } ?>>04.00 PM</option>
	      <option value="04.30 PM"<?php if ($end=="04.30 PM") { ?>selected="selected" <?php } ?>>04.30 PM</option>
	      <option value="05.00 PM"<?php if ($end=="05.00 PM") { ?>selected="selected" <?php } ?>>05.00 PM</option>
	      <option value="05.30 PM"<?php if ($end=="05.30 PM") { ?>selected="selected" <?php } ?>>05.30 PM</option>
	      <option value="06.00 PM"<?php if ($end=="06.00 PM") { ?>selected="selected" <?php } ?>>06.00 PM</option>
	      <option value="06.30 PM"<?php if ($end=="06.30 PM") { ?>selected="selected" <?php } ?>>06.30 PM</option>
	      <option value="07.00 PM"<?php if ($end=="07.00 PM") { ?>selected="selected" <?php } ?>>07.00 PM</option>
	      <option value="07.30 PM"<?php if ($end=="07.30 PM") { ?>selected="selected" <?php } ?>>07.30 PM</option>
          <option value="08.00 PM"<?php if ($end=="08.00 PM") { ?>selected="selected" <?php } ?>>08.00 PM</option>
	        
	        
        </select>        </td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="19">&nbsp;</td>
        <td>&nbsp;</td>
        <td colspan="2">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="22">&nbsp;</td>
        <td><div align="right"><strong>Class No<span class="style1">* </span></strong></div></td>
        <td colspan="2"><input name="txtCno" type="text" id="txtCno" value="<?php echo $class; ?>"></td>
        <td>&nbsp;</td>
      </tr>
	
      <tr>
        <td height="19">&nbsp;</td>
        <td>&nbsp;</td>
        <td colspan="2"><div id="ajaxDiv" class="error_strings" ></div></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="25">&nbsp;</td>
        <td>&nbsp;</td>
        <td width="65"><input type="submit" name="Submit" value="Save" ></td>
        <td width="224"><input type="reset" name="Submit2" value="Back" onClick="backxx()"></td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
	</tr>
	<tr>
		<td>
			<img src="../images/3.gif" width="800" height="40" alt=""></td>
	</tr>
	  </form>
</table>
<!-- End ImageReady Slices -->
</body>
</html>